package com.wbs.domain;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.wbs.domain.base.BaseEntity;

/**
 * Entidad base
 */
@Entity
@Table(name = "Transaction")
public class Transaction extends BaseEntity implements java.io.Serializable {

    private static final long serialVersionUID = 1L;
    private static final int  LENGTH_CODE = 50;
    private static final int  LENGTH_DESCRIPTION = 100;
    private static final int  LENGTH_IS_VOID = 1;
    private static final int  LENGTH_SIGN = 1;

    /** Represents the code of the transaction */
    private String code;

    /** Represents the transaction description */
    private String description;

    /** Represents whether the transaction is void */
    private String isVoid;

    /** Represents the sign of the transaction */
    private String sign;

    /** Represents the transaction external code */
    private String externalCode;

    /** Constructor */
    public Transaction() {
    }

    /** Constructor */
    public Transaction(String code, String externalCode, String description, String isVoid, String sign) {
        this.code = code;
        this.externalCode = externalCode;
        this.description = description;
        this.isVoid = isVoid;
        this.sign = sign;
    }

    /** Method that returns a code*/    
    @Column(name = "code", length = LENGTH_CODE)
    public String getCode() {
        return this.code;
    }

    /** Method that set a code*/    
    public void setCode(String code) {
        this.code = code;
    }

    /** Method that returns a description*/    
    @Column(name = "description", length = LENGTH_DESCRIPTION)
    public String getDescription() {
        return this.description;
    }

    /** Method that set a description*/    
    public void setDescription(String description) {
        this.description = description;
    }

    /** Method that returns a isVoid*/    
    @Column(name = "isVoid", length = LENGTH_IS_VOID)
    public String getIsVoid() {
        return this.isVoid;
    }
    
    /** Method that set a isVoid*/
    public void setIsVoid(String isVoid) {
        this.isVoid = isVoid;
    }

    /** Method that returns a sign*/    
    @Column(name = "sign", length = LENGTH_SIGN)
    public String getSign() {
        return this.sign;
    }

    /** Method that set a sign*/    
    public void setSign(String sign) {
        this.sign = sign;
    }

    /** Method that returns a externalCode*/    
    @Column(name = "externalCode")
    public String getExternalCode() {
        return externalCode;
    }

    /** Method that set a externalCode*/    
    public void setExternalCode(String externalCode) {
        this.externalCode = externalCode;
    }

}